package example.oauth;

import java.util.HashMap;
import java.util.Map;
 
/**
 * 存储开放平台返回授权码
 * @author tommy
 *
 */
public class OAuthAccessor {
    public final OAuthConsumer consumer;
    public String requestToken;
    public String accessToken;
    public String tokenSecret;
    /**
     * 
     * @param consumer 存储用户提供授权的第三方平台
     */
    public OAuthAccessor(OAuthConsumer consumer) {
        this.consumer = consumer;
        this.requestToken = null;
        this.accessToken = null;
        this.tokenSecret = null;
    }
    
    private final Map<String,Object> properties = new HashMap<String,Object>();
    
    public void setProperty(String name,String value){
    	properties.put(name, value);
    }
    
    public Object getProperty(String name){
    	return properties.get(name);
    }


}
